package cn.jsj.education.exception.instance;

/**
 * 自定义异常，用于撤销事务并返回提示信息给客户端
 *
 * @author 卢斌
 */
public class CustomRuntimeException extends RuntimeException {
    /**
     * Constructs a new runtime exception with the specified detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     *
     * @param message the detail message. The detail message is saved for
     *                later retrieval by the {@link #getMessage()} method.
     */
    public CustomRuntimeException(String message) {
        super(message);
    }

    @Override
    public String toString() {
        return this.getMessage();
    }
}
